import os
import sys

imagePath = 'D:\\project\\python\\datasets\\ccpd_green\\train'

def main():
    names:list[str] = os.listdir(imagePath)
    x:int = 1
    for i in names:
        os.rename(imagePath+"/"+i,imagePath+"/"+str(x)+".jpg")
        x=x+1
main()